<template>
    <a-form-item :label="item.label" :hidden="item.componentProps.hidden">
        <a-input-search :size="item.componentProps.size" :allow-clear="item.componentProps.allowClear"
            :maxlength="item.componentProps.maxlength" :bordered="item.componentProps.bordered"
            :disabled="item.componentProps.disabled" :show-count="item.componentProps.showCount"
            :style="item.componentProps.style" :placeholder="item.componentProps.placeholder" @search="onSearch"></a-input-search>
    </a-form-item>
</template>

<script>
export default {
    name: "customInput",
    props: {
        item: {
            type: Object,
            required: true
        },
    },
    data() {
        return {

        }
    },
    methods: {
        onSearch(value) {
            // console.log("执行搜索，搜索的值：", value);
        },
    }
}
</script>

<style>
</style>